Remove calls to 'rawSystem' and replace with 'safeSystem'.

All calls should be made with a safe environment.