Use absolute paths for directories in .gitignore

Previously, ignoring `lib` was causing `static/lib` to be ignored as well.