automatically getting path for inc; checking environmental variables