Prefix paths with / when not starting with ~