Get variant.upload.url from properties or attributes, java 1.6 compat. fixes