Fixed!

* Using ruby system command instead of exec which exits
* Fixed the conditionals to make updating the resources work