Finish temporary directory implementation