Improve error handling of helper functions in flash-image
Use existing variable to refer to repack.sqfs in end_squashfs_edit()
Use LARGE_TEMP_DIR for squashfs editing