Prevent directories to be treated as game resources