fix path problem when install from root directory