Refactored Util tools of the build system.