Code refinements

* Implement Windows restart_perl and restart_app.
* Use .get for retrieving dictionary entries.