change jar and dir permissions after things are built and copied

Ran into some permissions problems building on OpsWorks managed instances. 

These permission changes should work for OpsWorks and non-OpsWorks use cases.