MockAsWar: create subdirectories

Before this modification, the implementation did only create the first level of directory to the warDir or warFile. Now, all nonexistent parent directories are created