Changed implementation of getExternalStorage() for API 8 and above