Fix .gitignore and undo chown to root in build_pkg.py on Linux