Fixing issues with new build script.
updated javadoc deploy script.