move cd command to beginning of function

On branch centos7
Changes to be committed:

	modified:   setup.sh