fixing build script for node < 0.10