use toUpperCase() instead of toLowerCase() for StorageMode check

Signed-off-by: Steven Downer <grinch@outlook.com>