Improve camera flash checking code.

* Make the new check method better.
* Also follow code style for action strings.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>