fix rpmbuild under shells that don't support {} expansion

Creating the rpmroot directories used {} expansion which relies on the shell supporting it.  Node always seems to use /bin/sh in linux and in ubuntu that's a symlink to dash not bash.

I've modified it to do the expansion in js so which shell is used doesn't matter.