use $SHELL for scripts without shebang

thanks to @zhaocai
Closes #613