make policy copying work on java 6
move policy installation