Fix bug #1 removed extension before passing the filename to bibtex