[WIP] make recipe be platform agnostic.

This could be a first step for supporting multiple OS platform other than ubuntu.