Fix ssh error during creation of log folders