add file option to config for squashfs and tar and adapt to match