Catch chmod errors in build task

Signed-off-by: Tom Wright <tom@inflatablecookie.com>