Environment detection in v0.15