COOK-3054 ruby_block should only be called if append_env_path is set
Merge branch 'COOK-3054'