re-added support for nodejs executable - still testing
removing last folder from dir
finished making cli script working for node and nodejs