use -k instead of --canonicalize with readlink because it is more portable'