Removing a newline in .gitignore
Better Dir usage and better FS commands

This removes dependencies on changing the directory (which is bad
because of various errors which could occur)

Using absolute paths is the best practice in this situation, and it
works nicely.