Fix check `destination` is a directory