If login shell is set to /bin/sh, try readlink