Remember to close the file after writing to it
add missing comment
add extra newline when we find the java binary (make output look nicer)
Merge remote-tracking branch 'origin/development' into bleeding-edge