fixed file copy function in site.py