Fix clearing of assets with multiple `.` in them.

If asset filenames had multiple `.` in them the target names would be
incorrectly generated. Use the existing regex to pattern match names
better.

Fixes #221