Fixed bug in Linux skipping the osx check.
Added more stuff to gitignore.