Less platform dependent file copy

Note uses Java 7