initProject.sh - refactored copy action into a function