some modifications to xdg-autostart based on suggestions from the PyXDG maintainer