Integration testing for file.managed dir_mode argument.

Added documentation for dir_mode to file.managed.