Fix permissions for directories in Dockerfile.