Patch for cloudfoundry-cli#182 - replace deprecated code with calls to runtime.Stack()