Fix logging error when using script path
Merge pull request #4 from hibri/logging-excepetion-when-using-script-path

Fix logging error when using script path