Permission and gitignore fixes