Added helper for getting absolute path to a resource.