Fix pipe to stdout
Add shebang to bin