Fix major scripting error

Previous core work left a little glitch in command parsing.
Merge pull request #786 from mcmonkey4eva/master

Pull request for priority hotfix