Patch for cloudfoundry-cli#182 - replace deprecated code with calls to runtime.Stack()
added code to allocate bytes for runtime.Stack() call
Merge pull request #184 from weilanwu/master

Fix for #182