more robust path handling (especially for windows)