fix'ed path calculation for unix systems