better fix for custom installation directories