Allow init command to be used in non-interactive mode

Fix #33