Fix shebang related bugs.
Merge pull request #139 from sethyuan/master

Fixed 2 shebang related problems