Move root directory throws ClassCastException

Fixes #24
Throw correct exception for paths of different provider

Fixes #23