A trick to create necessary directory structure