support configure script of nodejs < 0.8

it uses shell instead of pythong