Fixed race contition in ~/.xsession