console logging on shell start script to solve a mysterious open(): Permission denied error