Fixed path to pie and some double quote escaping issues