fixed but when using ~/<dir>