Allow cached_dir to be located outside of module dir
Create empty tmp dir