updating utility to use an ifdef instead of popen
Merge pull request #2 from stan-dev/feature/remove-popen-from-utility

updating utility to use an ifdef instead of popen