Add MakeFile support for OS detection and use correct nodejs binary on Ubuntu.