Changing how directory permissions are set.

refs #4647