CB-6481 getPluginsHookScripts to work if plugin platform not defined

Also HookRunner minor code improvements