Fixed waiting-for-tools error introduced in refactoring _loadToolScript