Support relative path for -d option