Set current working directory for OS X version 10.7 and below