Java deploy regex and lib dir checks.