[Complete] Fix copy resources script for iOS < 6 and OS X < 10.8