Upgrade security script to only scrub writable directories if directed to do so.

Signed-off-by: Peter Chester <peter@tri.be>