update gitignore to omit pyc
Fix executing commands on non-posix systems