simple script for extracting files in a directory to separate folders