Added dir-exist check on create