Make sure tmp folder exists before running command