Add basic logging
Improve destination path resolution