Init script: fail when given an unknown command

Closes #1779
Review 1112 by @mlucy