Made path handling OS independent.