Problem: The shell scripts have no shebangs
Solution: Add to each the line: #!/usr/bin/sh
Problem: shebang is not portable between system
Solution: use `#!/usr/bin/env sh` shebang which should be cross platform

* Also changed the generated comments, so it's more obvious where they
  originate from.