fix for wrong file path
fix for mkdir
Merge pull request #2 from seetheprogress/master

various fixes