As Ismael suggested, setting the web3 version to 0.20.0 in my package.json allowed me to use this code.

npm install ethereumjs-testrpc web3@0.20.1

Ideally, I would update my code to work with latest package but happy with this solution for now.