OS-specific dir regex