Fixed bug with creating new folder for logfile and database.