Optimization when searching for pathnames that cannot posibly exist on Unix.