avoid copying dist into itself over and over, and issue with false git
directory