TOOLS-436: NewSessionProvider to return an error

* eliminate InitSessionProvider
* use mkdir -p as opposed to the "|| true" hack
TOOLS-438: replace the exit code literals with constants