2 fixes in file handling

1. filepath may not contain a slash at the end (on amazon-linux, ext4 I get this situation). Without digging deeper into this matter, one should simply use path.join instead of string concatenation
2. aggregation actually does exactly the opposite without this patch. Only files that *do not* match the extension make it into the aggregated[ext]