Replace readlink with cd && pwd as agreed