NPE fix (see #381)
see #389 and #378

-removed jre detection and add file extension option