Modified os.fs.mkdir to recursively make the directory.
Added better error handling on import page.