make sure expanduser is called on the returned string