Output to dir instead of dumping all files into one dir