Fix bug in source root registration.