This breaks on mac.  Please do something along these lines: http://stackoverflow.com/a/3080695/337516