Move reg_create_path() and reg_delete_path() to reg_api.c