Filter "." from path components in all instances

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.