fix reference to resources directory on OS X