Fix a bug extracting files from dist scheme

Obtained from:	PC-BSD