BUG#4000 ShellDispatcher should look at defined const

https://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/4000-shell-bootstrap-define-consts-without-verifying-first