Ensure JAVA_ARGS defaults to headless

Fixes #10.