Added *localhost* to local env detection