Get the correct path