Added support of variables in TOOL_HOME and EXPORTED_PATHS; Fixed bug with check of exported paths

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>