Fix parenting issues in rlm_file