Changed: readlink -f to realpath