Use new NSFileManager API, get rid of other warnings