Handle ~ in '.' command. Fix #120