Correct logic in tasks.rb

- Should skip if either ENV variable OR Java config is set to skip.

We're trying to skip loading the rake tasks because it throws an exception from rake (see #459), but we're unable to do so because the boolean logic here seems incorrect. Our expectation is setting either the Java bool or the ENV var should skip the rake task loading and we've updated this file to be consistent with that expectation.