feat(config): add TMDIR variable replacement for cross-OS