Checking source and destination path