Now builds temporary layer files in a proper temporary directory.