Add support for both node and non-node environments to patch