need a directory mode

For some reason it is being set to '0'

git-svn-id: https://svn.apache.org/repos/asf/continuum/branches/CONTINUUM-2713@1555115 13f79535-47bb-0310-9956-ffa450edef68