Added more checks as to where the stardog root dir can be found