rework nodejs makefile

to make it buildable from 'package' directory