set condition for when to change permissions on MM_REPOS

On branch foundation
Changes to be committed:

	modified:   scripts/middleman.sh