fairly naïve shebang implementation