Debug code, still some problems at startup. If plugin is loaded at startup the command sublime.packages_path() returns an empty string. If reloading the plugin while sublime is started it runs quite fine.