check source timestamp before building

Change-Id: Ie06a1a0f80aceb867d0685a6cbf11a8bf8f5476c