If urlhandler is used, try to use the parent of directory cloned into last time

This prevents from cloning into something like "C:\Program Files\Firefox\your-repo", which is not supposed to be.

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>