Script name mapping is not handled right. foo -> foo.sh or ??

Executable bits not set on scripts