Fix brackets and don't execute ruby_block if scratch_dir is local
Merge pull request #100 from continuuity/hotfix/hive-init

Fix brackets and don't execute ruby_block if scratch_dir is local