Move favicon writing to after its containing directory has been created