Read OS image tempfile path before unlinking

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>