[#201] cleaned up the utilities that check for path formats