Updated post-instillation and pre-removal scripts.

Due to changes in commit 5b394b1a399e6b6f6d9b80c4772bb9e098365441 the
install and removal scripts have been updated to accommodate this change.