app/controllers.js
updating extension service to ignore multiple . in filenames