use resourcePath to locate pd files reliably on os x and ios