Updated the reserved directory check. All dot-directories should be ignored.