Try to support installation.
some fixes for installation paths