unpackfs

code dedup and check for supported filesystems.