Fixed local repository check