Don't fail trash test if ~/.local doesn't exist or mount points can't be determined (master)
master version of !577 (merged) which builds OK on Launchpad.
cc @oholy
also @smcv (I spoke with @oholy on IRC, who said that it'd be good to see this in master at least for the time being.)
See #1643