Fix failures when installing java on vagrant with vagrant-cachier plugin

There are 2 issues here:
1. Even with the vagrant-cachier(https://github.com/fgrehm/vagrant-cachier) plugin, the java cookbook will always download java tarball anyway despite that the file is in cache folder already.
2. As the /var/chef/cache folder is mounted via NFS, there will be failures to set the permission to the extracted file.