Minor issue with mktemp fixed