Fix some outstanding issues with on-success build actions in travis

The security credentials for sonatype seem to be incorrect, and the script was not creating the parent folder (in case it didn't exist).