jni: fix crashes when finding external storage. Regression from jni merge.
fixed: peripheral settings must be visible for peripherals that are detected
Add URIUtils::HasExtension(..) functions
Use the new HasExtension(..) function
Cleanup IDirectory::IsAllowed(..)