Use temporary directory instead of current working directory