remove any ~ path