fixed log file subprocess calls