renamed configuration option "directory" to "folder"
fixed reading of options