Patch 1 - fix path_out creation if not existing