Use readlink over pwd for expanding paths