add code to get script name

On branch master
Changes to be committed:

	modified:   init.sh
	modified:   scripts/middleman.sh
	modified:   setup.sh