refs: complain when a directory exists at ref When a (non-empty) directory exists at the reference target location, complain with a more actionable error message.