Fix flags for flash and dump commands