Better fix changed attributes

Previous PR (https://github.com/Versal/versal-gadget-launchers/pull/29) was not enough, this fixes some corner cases better (see tests)