Fixed wrong directory for hook when refiling with -src option.