realpath Here is the `realpath` script in shell environment, which runs in MacOS System. Install chmox +x realpath And add directory of realpath to your PATH variable. Reference: http://stackoverflow.com/a/18443300/441757