rstrip.sh: fix handling variations in "file" output