Fix ~ expanding to ./~.