rbm: Error when the tmp_dir directory does not exist
In the rbm build, we can define the temporary directory to use with the tmp_dir
option. If we set it to a directory that does not exist yet, it fails with an error. We should instead try to create it if it does not exist.