Fixed issue when item not found in dictionary
Fixed issue with .bat launchers on windows when paths have spaces. Thanks to Andrew Houghton for the bug report and fix.