Fixed (at least I hope) directory problems

Added a CurrentWorkingDirectory method to Tools.h that will hopefully fixed problems with loading resources in on mac os