Avoid error with embedded assets

Error occurs when assets are embedded in flash and are placed in a sub directory (so that a / is in file attribute).
Added the same fix to Kha's flash backend.