fixes dir paths