Fix bug in gitignore file

It was ignoreing every instance of 'lib'. This caused some very
importent files to be ignored. Now only ignore the 'lib' at root