Refactored interal _loadToolScript function to always load tools in the given order