Fix BASE_PATH detect. If it's sublime-package should use package path.