Helper function to work around older puppet's lack of recursive directory creation functionality