Fix patch 0e63730401 -- takeExtension gives you a leading '.'.