Fix up tilde expansion on FreeBSD