make the ignore files code match full paths

This is pretty crappy and should be fixed up later to use actual globbing