Replacing FSDirectory with NIOFSDirectory