New implementation of cmdparse.parse_command_path() and added build_rule()