non-DRY fix for resources copy on OS X