Fix handling of files and folders names with spaces; Improved date-time format of log files