Fix gitignore and nonexistent directory issues