Don’t perform anything if TM_SCM_NAME is unset

Fixes #3