Check permissions and add git ignore