[COOK-3488] set alternatives for ibm jdk

https://tickets.opscode.com/browse/COOK-3488

Resubmitting the request as the code has diverged. Re-factored update-alternatives bits out of ark LWRP into a separate LWRP and then reused the new LWRP in ark and ibm recipe.