detectAsdf function
Detects if the currently running instance was installed via asdf.
asdf installs to: ~/.asdf/installs/<tool>/<version>/
Implementation
bool detectAsdf() {
final execPath = Platform.resolvedExecutable;
return RegExp(
r'[/\\]\.?asdf[/\\]installs[/\\]',
caseSensitive: false,
).hasMatch(execPath);
}