Tweaking build to avoid exportenv.sh if it is not present