Using Path.join dirname and basename now