fixed global var for detecting prod or dev paths.