fix condition for autostart symlink removal