Avoid -URLByAppendingPathComponent:isDirectory: as it's 10.7+ only
Use a runtime check to avoud accessing 10.7+ property keys on 10.6