Fix .gitignore and add missing files

Also undo chown to root in build_pkg.py on Linux.