Fix bug that prevented proper handling of files w/ multiple dots in name

(eg jquery.1_10_2.js)