Fix permissions on created directories (0755 instead of 0644)