cmfm: fix ensure read, write and execute checks in java console

Change-Id: I03e6117f6f660c46aa9df9ff8ebf7c602badb40a
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>