Fix problem uploading site logo

Adds an additional check to create the needed directory first, then try to move the file.