Run init() before every deploy

init() is modified in the way so it can run before every deploy. It will
ensure there is appropriate folder structure.

Change suggested by @daviddyball