Problem: shebang is not portable between systems

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.