Move output subdirectory creation into the container so that it works when the Docker host is not on the same system