Changed realpath to readlink -f for the travis build