Sadly, `readlink -f` is not portable. `readlink: illegal option -- f`. See if you can find another solution, or worst case, depend on `coreutils` and use `greadlink -f`.