Fixed the output and temp directory paths