Use osfamily fact for module

* Update nodejs to use osfamily fact.
* Fix spec tests from contributor.
* Patch for Amazon Linux for backwards compatibility.