Remove extra dir resolving in resolveCustomLocation