making path regexen platform agnostic