change realpath to readlink -f for to be compatible with debian