Made more robust to absence of lscsoft-user-env.sh.