init.sh: fix EXEEXT shims to work also for names like test-prog