Make script more platform independent

* only check what is necessary for the session.  No need to check
  sublime, craftbukit etc