Introduce the rpmbuild_tmp_project_dir variable to make some parts of the script cleaner