fixed signal.c flag removal and modified version.sh to count master commits only