Made nodejs env variable insertion more generic