make sure schema file dir exists in migrate cmd

Need to make sure the file dir exists before trying to dump the
schema file.  Otherwise a unnecessary error happens.