translate ^ and ~ as FileSystem.Mount does