Permit relative path or $PATH searches for the java command.

This fixes the following broken in #1189:

    % bin/logstash
    => Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME.
Merge pull request #1280 from jordansissel/fix-bin-logstash

Permit relative path or $PATH searches for the java command.