fix script to not copy .git and script itself