[media-indexer] Checked that $log is not empty before write in log file
[media-indexer] Used colon char to separate directory names