add ".tex" to full file spec for windows run.
control for empty directory switch
Merge pull request #1 from ati-ozgur/master

Windows Support