Fixed 2 shebang related problems

This commit solved 2 problems of shebang in compilation:

1. `loadFile` has an incorrect handling of shebang that impedes compilation of scripts containing a shebang.
1. Double generation of shebang.