Fix same directory relative paths bug