'use warnings' instead of perl -w

Change-Id: I2f3feab4a8396d73c8e3313731427061534536a4
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
fix regexp

it's supposed to match a literal dot

Change-Id: I4bee3571a4239ec08a14ed18e409f97b4455f928
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>