Fix code detection for scala on windows