check_path(): allow symlinked directories to checkout-index --prefix