Better error handling if export dir exists