Fixes cfn-hup hooks functionality

Change-Id: I39ba2cca1f096e866f69fc016f78004ea991c0b6
Closes-Bug: 1387190