fixed handling of destination paths