rpm/build topdir fix for BSD mktemp

BSD mktemp needs an argument to provide an appropriate path. This update provides a working path directory in both Linux and Mac OSX.