Update jar-copy to safer method