Slightly more flexible determination of dev vs prod