Ensure more robust code for lxde fix on servers