Improving the buggy ignore file/dir functionality