Fixed openshift deployment issues

Fixed the following issues:

* missing async variable making the async function not working
* root directory should be declared
* diy directory pointed at wrong location
* openshift uses a testrubyserver.rb file to deploy, original function removed this file. The testrubyserver.rb file should be executable for openshift to function