custom DirName and BaseName implementation

- basename and dirname are plateform dependant, not thread safe and can modify passed argument
- libc bionic used in Android fixes parts of it by calling basename_r and dirname_r thread safe implementation
- however, dirname still can modify passed pointer
--> rely on in-code functions instead of libgen implementations
--> modify dirname_r to never modify passed argument
6.20.3 / libtouch_gui 1.03

- make use of new DirName / BaseName functions
- cleanup formatting and code to free some resources
add missing vk res
nandroid: Disable nandroid reformat /system and /cache
extendedcommands: Add user selectable device format
Use ENABLE_BLACKHAWK_PATCH flag only, add it to p31xx and p51xx config