fixed extention for isitrunning, refactor build scripts