Fix to path the correct path to findShareKeys

Finding share keys requires the path to the file relative to the user's
home, but not the path to the share key.

Also added a unit test to cover this case and make sure that share keys
are moved properly and old keys are removed.