Oops. That should be 

    mkdir -p reference/javadoc/$JCLOUDS_VERSION_X/

I'll fix that. It's there to create the Javadoc dir in case it doesn't already exist. e.g. When we move to a new minor version like 1.8.x