Linux function call dirname replaced by Qt methods for MS Windows
portage.