Fix trepidity's fix for #41

As discussed on IRC, this should fix the issue @qirtaiba is seeing.
Note that I did not test this, since I don't have OSX.