Update clone-subprojects.sh to support more common grep version

many versions of grep don't have -P flag(e.g. in macosx), egrep is more common in this case