Fix executable permissions
Fix standard IO specs
Fix #2; replace ARGV