sdparted: fix partitioning functionality

SDPATH is set in environment by extendedcommands, but it's being
clobbered by the script (that is looking in the wrong fstab
location). Fix this, and ensure that the partition log is placed
in /cache/recovery.

Change-Id: I63bcc8417490a914bff92740e797e95def4e860f