scripts: fix getver git dir check