correcting the check for local disk