update custom.php

remove ENV from the detection part. Because it’s no longer neccessary