require.paths has been deprecated
Replacing broken file system methods with those in fs-extra module