Recent optimization causes build failures when using squashfs

A post was split to a new topic: Mender-repopulate-inactive-partition breaks squashfs