remove deploy task from build.sh - moved to job
make function variables local