Fixed test coverage and better edge cases

* Redirect system out/err of the spawning process
* Create parent directories if any in the approval file destination