save .cache adjacent to require.main.filename