use isDir and isFile over exists for recursive non app imports