more elaborate way to figure out shebang for Scala