Split build_package_standard into smaller functions

While trying to work around a build issue with ruby-1.8.7-p358 on Fedora 17, I needed to inject some custom commands before running `make`. I didn't want to override the entire `build_package_standard` function, as it might change in the future. So I broke the function down into smaller functions, that I could selectively override.