Added the "." filter on paths to other places in the code where I join filenames

I needed a " grep { $_ ne '.' } " to prevent "./" prefixes in the built asset.
I'm not entirely sure if I need them elsewhere also, but I suspect so and it
doesn't break the testcases, so I added them.