Added creation of subworking directories if they don't exist