Fix issue with removing garbage in initramfs

Change-Id: I15cb254795ff478fb68e79f2b87f929d9012b3ca