Update invoker code to support distro specific setup
Add support for fedora etc as well