Improve the bld agent to pre-release RPMs automatically whenever changes are pushed to cmsdist; improve code readibility and error handling.