Properly check for dev environment