Fixed bug in creating nexpy_dir