Made compatible with windows.
Added support for finding collectors and handlers via environmental variables.