Corrected resources path search on OSX.