Helper functions for shell detection
Helper functions for path manipulation