Additional check for parent directory