Improve how we copy files and detect changes