fix error log writing
check if ~/".msgcollector" exists before forking to mkdir
fix