Put mac executable signing in dedicated function

Change-Id: I0e927e90d507286353c3cb0d04d137729b4b7428
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>