amzcons: allow "~" in the path