Attempted fix for df outputting errors in detectdisk.