fixes shebang issues

fixes #271
fixes #272 
fixes #273