Create tempdir to retrive materials instead of messing working directory up.