Detect non-directories