Create logpath using the path part of the LOGFILE, without including the name
Merge pull request #138 from tobami/fix-logpath-creation

Create logpath using the path part of the LOGFILE
Closes #135