Make QuickfixFilenames function script-local

It's not used anywhere else.
If we're in the qf window, close it first

Otherwise some of the output will end up in the window.
Merge pull request #2 from AndrewRadev/avoid-using-quickfix-window

Avoid using quickfix window