Correct logic in tasks.rb 

- Should skip if either ENV variable OR Java config is set to skip.