Make sure we don't pass ~ to rc. Apparently it doesn't understand it.