Re-add support for paths starting with '~'