[COOK-2989] - bash resource uses wrong attribute

* the bash resource used `command` instead of `code` as the attribute
for the script to run.
* the default jvm path in the helper library was not set correctly,
which caused the tests to pass incorrectly
* we need to look for the *parent* of the java_home in the helper, so
add java_home_parent method
* it appears that despite previous investigation (COOK-2904), the
architecture is not actually appended to the openjdk directory in
ubuntu 10.04 and debian 6
* use a heredoc in the openjdk recipe for the code, and #gsub the
leading whitespace, then repeat that in the test.
Merge branch 'COOK-2989'