Replace readlink with function to canonicalize project dir
Replace readlink with function to canonicalize project dir

This fixes an issue with using `readlink -m` on systems that don't
support it, such as macOS by default.

zambezi/ez-build,zambezi/ez-build