fix DEV mode detection