The '--builddir' option value is assigned to the "builddir" variable, which is wrong. The correct variable is "BUILDDIR" so use that instead to fix the '--builddir' option. Also, add logging to the script when executing the "dist/redhat_build.rpm.sh" script to simplify debugging.