update copy-to-home.sh with better op handling