Create destination directory when creating input_files with `content`

If input_files contains an entry like:

- filename: 'somedirectory/name'
  content: 'INCLUDE template'
  refresh_input: 1

rbm will fail if somedirectory does not exist yet. Instead it should create the directory.