Fixes #8.  Move the map call to above the directory to allow users the c...

I moved the call to the map function above the directory.  This allows users to change the user, group, permission's etc of the directory.  Does this change look good?