helper script to fully check (git) directory