I wonder if `xcode-select -print-path` is a better way of doing this (somewhat new I think)

http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html