fixing .gitignore to ignore foo/ directory
Now supporting 'cd' commands properly