Fixed to only check for compressed files