Sanitize the base directory name.
Macros in the base directory name cause trouble, since rpmfluff does not
expand macros when creating the base directory, but rpmbuild will expand
macros provided in arguments. Remove any % characters to keep things
consistent.