Remove ~ from outfile path.