replace dirname with backslahes by forward slashes for sweet relative url creation even in win environment