change condition for detecting cli vs gui implementation

Platform.isRunning is not a sufficient condition to detect if osate is running under cli (command line intercafe) or gui (graphical user interface): osgi based version of osate-cli will return true from isRunning but the implementation is based on cli. Added a boolean flag to be more precise on that front.