get_sha1: teach ":$n:<path>" the same relative path logic