Added dev env auto-detection