Updated hw_builder to return exit codes