Use that nice little .ext() method from Rake I didn't know about.