The truncate command is not portable

Change-Id: Ieadcda1b8e3088c228917c91fbf10b8823203661