Use generator expression to get target output file location