realpath is not available on mac os