Add command check for exporting to local dir