fix to exclude directories; remove path prefix from file names;