Fixed mobile device detection test

Added case insensitivity to regex.