Create whole directory path for initial properties

If the src/main/resources directory is missing it tries to create it, but this depends on the parent existing. With this changes the whole chain of directories will be created and the hardcoded path name duplication is avoided.