Added command line option to choose a different temp directory