Some py versions might not have LocalPath.isdir()