[COMMON] Update build script for PecanCM

Change-Id: I0efae7d7a08a9ae432cecb435bee59ee8b940c85