Use shell=False when chowning logs folder.