Improve create_symlinks hook.